
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Volume.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Volume)
{
 
	TEST(verify 1TBSP = 3 TSP)
	{
		ASSERT_EQ(Volume(3, TSP), Volume(1, TBSP)); 
	}


	TEST(verify 1 OZ = 2 TBSP)
	{
		ASSERT_EQ(Volume(1, OZ), Volume(2, TBSP)); 
	}

	TEST(verify 1 OZ = 6 TSP)
	{
		ASSERT_EQ(Volume(1, OZ), Volume(6, TSP)); 
	}

	TEST(verify 1 TSP + 1 TBSP + 1 OZ == 6 TSP)
	{
		ASSERT_EQ(Volume(1, TSP) + Volume(1, TBSP) + Volume(1,OZ), Volume(10, TSP)); 
	}
};

#if 0
增加一个容量(Volume)计算系统
TSP(茶匙)TBSP（汤匙）OZ(盎司)
1TBSP = 3 TSP
1 OZ = 2 TBSP

#endif

